﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MoveUV : MonoBehaviour
{
    public float speed = 0.5f;
    void Start()
    {
    }
    Material material;


    private void Update()
    {
        material = GetComponent<MeshRenderer>().material;
        material.SetTextureOffset("_MainTex", new Vector2(Time.time * speed, 0));
    }
}
